package cn.auction.entity;

import java.util.Date;

public class Auctionrecord {
    private Long id;
    private Long userId;
    private Long auctionId;
    private Date auctionTime;
    private Double auctionPrice;
    private String userName;

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    @Override
    public String toString() {
        return "Auctionrecord{" +
                "id=" + id +
                ", userId=" + userId +
                ", auctionId=" + auctionId +
                ", auctionTime=" + auctionTime +
                ", auctionPrice=" + auctionPrice +
                ", auctionrecordName='" + userName + '\'' +
                '}';
    }
    public Auctionrecord(){}
    public Auctionrecord(Long id, Long userId, Long auctionId, Date auctionTime, Double auctionPrice, String userName) {
        this.id = id;
        this.userId = userId;
        this.auctionId = auctionId;
        this.auctionTime = auctionTime;
        this.auctionPrice = auctionPrice;
        this.userName = userName;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getAuctionId() {
        return auctionId;
    }

    public void setAuctionId(Long auctionId) {
        this.auctionId = auctionId;
    }

    public Date getAuctionTime() {
        return auctionTime;
    }

    public void setAuctionTime(Date auctionTime) {
        this.auctionTime = auctionTime;
    }

    public Double getAuctionPrice() {
        return auctionPrice;
    }

    public void setAuctionPrice(Double auctionPrice) {
        this.auctionPrice = auctionPrice;
    }
}
